package com.jlnk.featurea;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.jlnk.common.CommonUtils;
import com.jlnk.featureb.UserProfileActivity;


public class LoginActivity extends AppCompatActivity {
    private Button loginButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);

        loginButton = findViewById(R.id.login_button);
        loginButton.setOnClickListener(v -> {
            // 模拟登录成功，跳转到FeatureB
            Intent intent = new Intent(LoginActivity.this, com.jlnk.featureb.UserProfileActivity.class);
            startActivity(intent);
        });

        CommonUtils.log("LoginActivity created");
    }
}
